--[[
  ---- 游戏首页
]]
function GameHome()
  local ctn, getNum = 0, 0
  sysInit.gameCreateRole = 1

  -- dialog('元宝数量：'..getNum)

  -- ctn = RxFindMultiColorTable()
  RxLog('GameHome -> 首页 +(加号) 上阵')
  ctn = RxTouchWithColor(Color_game_home_add_hero) -- 首页 +(加号) 上阵
  if ctn == 1 then return true end

  RxLog('GameHome -> 推荐上阵')
  ctn = RxTouchWithColor(Color_game_novice_guidance_common) -- 推荐上阵
  if ctn == 1 then return true end

  RxLog('GameHome -> 新手引导-上阵')
  ctn = RxTouchWithColor(Color_game_alert_ng_goto_battle) -- 新手引导-上阵
  if ctn == 1 then return true end

  RxLog('GameHome -> 首页-底部-邮件')
  ctn = RxFindTextTouchTable(Font_home_bottom_email) -- 首页-底部-邮件
  if ctn == 1 then
    RxLog('GameHome -> CloseEmail')
    return CloseEmail()
  end

  -- 缺少 巡逻奖励、
  -- RxLog('GameHome -> 首页-底部-巡逻奖励')
  -- ctn = RxFindTextTouchTable('巡逻奖励') -- 首页-底部-巡逻奖励
  -- if ctn == 1 then
  --   RxLog('GameHome -> BackPatrol')
  --   return BackPatrol()
  -- end

  RxLog('GameHome -> 首页-底部-资源找回')
  ctn = RxFindTextTouchTable(Font_home_bottom_resource_recovery) -- 首页-底部-资源找回
  if ctn == 1 then
    RxLog('GameHome -> BackResourceRecovery')
    ctn = BackResourceRecovery()
    if ctn == 1 then
      -- 点击 返回
      GBBackClick()
    end
    return true
  end

  RxLog('GameHome -> 征战')

  RxLog('GameHome -> GameNoviceGuidance')
  return GameNoviceGuidance()
end
